home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-07-09 | 683 b | 31 lines | [TEXT/MPS ] |
- Perl -Sx "{0}" {"Parameters"}≥≥{Worksheet}; Exit
- #!perl
-
- ($dir) = ($0 =~ /^(.*):[^:]+$/);
-
- dbmopen(UPP, "$dir:UPPDB", 0);
-
- exit unless ($file = &MacPerl'Pick("Which File?", sort keys %UPP));
- exit unless ($info = &MacPerl'Pick("Which Type?", sort split(",", $UPP{$file})));
-
- $info = "upp" . $info . "Info";
-
- open(SELECTION, "$ENV{Active}.§") || die "$!";
-
- while (<SELECTION>) {
- last if (($proc) = ($_ =~ /(\w+)\(/));
- }
-
- close(SELECTION);
-
- print <<END_UPP;
- #if USESROUTINEDESCRIPTORS
- RoutineDescriptor u$proc =
- BUILD_ROUTINE_DESCRIPTOR($info, $proc);
- #else
- #define u$proc *(RoutineDescriptor *)&$proc
- #endif
- END_UPP
-
- print STDERR "search /[¬a-zA-Z]$proc[¬a-zA-Z]/ ≈.h ≈.c ≈.cp\n";
-